//
//  WISHomeTabBarView.h
//  WisdomStudy
//
//  Created by  androidlongs on 2017/8/26.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger,WISHomeItemType){
    WISHomeItemTypeDefault=0
};

@class WISHomeTabBarView;

//定义block回调
//用于TabBarView中Item点击事件回调
typedef void(^WISHomeTabBlock)(WISHomeTabBarView *tabBar,WISHomeItemType idx);

//定义代理协议回调
//用于TabBarView中Item点击事件回调
@protocol WISHomeTabBarDelegate <NSObject>

-(void) tabbar:(WISHomeTabBarView*) tabBar clickButton:(WISHomeItemType) idx;

@end


@interface WISHomeTabBarView : UIView

//代理回调
@property(weak,nonatomic) id<WISHomeTabBarDelegate> delegate;
//block回调
@property(copy,nonatomic) WISHomeTabBlock block;

-(void) selectItem:(NSInteger) index;
-(instancetype) initWithItem:(NSMutableArray *) itemList :(CGRect)frame :(UIColor *) normalColor :(UIColor *) selectColor;
@end




